import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
/**
 * 保养派工单*/
export const machineManagerUpkeepDispatchCreate = (data) => postRequest('/machinemanager/upkeep-dispatch/create', data);
export const machineManagerUpkeepDispatchUpdate = (data) => putRequest('/machinemanager/upkeep-dispatch/update', data);
export const machineManagerUpkeepDispatchDelete = (params) => deleteRequest('/machinemanager/upkeep-dispatch/delete', params);
export const machineManagerUpkeepDispatchGet = (params) => getRequest('/machinemanager/upkeep-dispatch/get', params);
export const machineManagerUpkeepDispatchPage = (params) => postRequest('/machinemanager/upkeep-dispatch/page', params);
export const machineManagerUpkeepDispatchPlanMyJobPage = (params) => postRequest('/machinemanager/upkeep-dispatch-plan/myJob/page', params);
export const machinemanagerUpkeepDispatchPlanMyJobFirstPage = (params) => postRequest('/machinemanager/upkeep-dispatch-plan/myJob/firstPage', params);
export const machineManagerUpkeepDispatchPersonnelUpdateAuditState = (data) => postRequest('/machinemanager/upkeep-dispatch-personnel/update-audit-state', data);
export const machineManagerUpkeepDispatchPlanBatchUpdateStateFinish = (data) => postRequest('/machinemanager/upkeep-dispatch-plan/batchUpdateStateFinish', data);
export const machinemanagerUpkeepDispatchGetDetail = (data) => postRequest('/machinemanager/upkeep-dispatch/getDetail', data);
export const machineManagerUpkeepDispatchPlanBatchRevokeState = (data) => postRequest('/machinemanager/upkeep-dispatch-plan/batchRevokeState', data);
export const systemUserGetUserInfoAndProcessByEmpId = (params) => getRequest('/system/user/getUserInfoAndProcessByEmpId', params);
export const machinemanagerUpkeepDispatchPlanBatchIgnore = (data) => postRequest('/machinemanager/upkeep-dispatch-plan/batchIgnore', data);

